C code for PEShowPrintControls and PEPrintControlsShowing

The following code demonstrates how to use the PEPrintControlsShowing function to find out if the Print Controls are showing in the Preview Window, and how to display the Print Controls in the Preview Window with the PEShowPrintControls function if they are not showing:

BOOL            controlsShowing,
        showPrintControls;
if (!PEPrintControlsShowing(Job, &controlsShowing)){
    // Handle error
}
if (!controlsShowing){    // Controls are not showing
    showPrintControls = TRUE;
    If (!PEShowPrintControls(Job, showPrintControls)){
        // Handle error
    }
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com